import request from '@/utils/request'

// 获取同步数据量统计
export function getSyncCountStats(params) {
  return request({
    url: '/stats/count',
    method: 'get',
    params
  })
}

// 获取同步成功率统计
export function getSyncSuccessRateStats(params) {
  return request({
    url: '/stats/success-rate',
    method: 'get',
    params
  })
}

// 获取同步失败原因统计
export function getSyncFailureReasonStats(params) {
  return request({
    url: '/stats/failure-reason',
    method: 'get',
    params
  })
}

// 获取同步性能统计
export function getSyncPerformanceStats(params) {
  return request({
    url: '/stats/performance',
    method: 'get',
    params
  })
}